#############################################

	The American Political Science Review 
		during the COVID-19 Pandemic

	Michelle L. Dion and Dara Strolovitch 
#############################################

This file describes the contents of: 
Dion, Michelle L. and Dara Strolovitch. 2023. “Replication Data for: The American Political Science Review during the COVID-19 Pandemic.” PS: Political Science & Politics. https://doi.org/10.7910/DVN/MYPI19.

All data should be stored in a subdirectory named "data" inside your working directory. 

These script files prepare the data for analysis. The original administrative data are not included to protect the privacy of authors. 
1. gender_coding.R - Codes the probable binary gender using genderize.io's API (subscription required, data sharing restricted)
2. data_preparation_1.R - Assembles one flat dataframe from multiple downloads from Editorial Manager. Does some basic cleaning of the data. 
3. data_preparation_2.R - Creates smaller dataframes for export to be shared and used in the analysis. 

These script files reproduce the figures and tables in the main text and SM. 
4. main_text.R - Code to create all figures in the main text.
5. supp_mats.R - Code to create all the figures and tables in the supplemental materials

The following packages are necessary to reproduce the figures and tables: 
library(tidyverse)library(lubridate) library(here)library(kableExtra)library(broom)library(janitor)library(ggridges)library(patchwork)library(latex2exp)library(knitr)library(modelsummary)

The results of sessionInfo() are at the bottom of this readme.txt. 


The data files are: 

data/submissions_byyearmonth.csv
data/classification_tab.csv
data/corr_author_region3_tab.csv
data/methodology_tab.csv
data/nonbin_uncoded.csv
data/nonbinary.csv
data/gender.csv
data/race.csv
data/classification_inter.csv
data/review_revstats_byteam.csv
data/review_sub_review.csv
data/review_sub_new.csv
data/review_new_postreview.csv
data/review_new_postreview_labels.csv
data/review_new_first.csv
data/review_new_first_labels.csv
data/School_Learning_Modalities__2020-2021.csv 
data/School_Learning_Modalities__2021-2022.csv
data/monthly_byteams.csv


Below are the specific versions of R and the various packages used for the analysis. 
R version 4.3.1 (2023-06-16)Platform: aarch64-apple-darwin20 (64-bit)Running under: macOS Ventura 13.5.2Matrix products: defaultBLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0locale:[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8time zone: America/Torontotzcode source: internalattached base packages:[1] stats     graphics  grDevices utils     datasets  methods   base     other attached packages: [1] modelsummary_1.4.3 knitr_1.44         latex2exp_0.9.6    patchwork_1.1.3    ggridges_0.5.4     janitor_2.2.0      broom_1.0.5        [8] kableExtra_1.3.4   here_1.0.1         lubridate_1.9.3    forcats_1.0.0      stringr_1.5.0      dplyr_1.1.3        purrr_1.0.2       [15] readr_2.1.4        tidyr_1.3.0        tibble_3.2.1       ggplot2_3.4.4      tidyverse_2.0.0   loaded via a namespace (and not attached): [1] gt_0.10.0              utf8_1.2.3             generics_0.1.3         xml2_1.3.5             stringi_1.7.12         hms_1.1.3              [7] digest_0.6.33          magrittr_2.0.3         evaluate_0.22          grid_4.3.1             timechange_0.2.0       fastmap_1.1.1         [13] rprojroot_2.0.3        backports_1.4.1        httr_1.4.7             rvest_1.0.3            fansi_1.0.5            viridisLite_0.4.2     [19] scales_1.2.1           cli_3.6.1              rlang_1.1.1            munsell_0.5.0          withr_2.5.1            tools_4.3.1           [25] tzdb_0.4.0             colorspace_2.1-0       DT_0.30                marginaleffects_0.16.0 webshot_0.5.5          vctrs_0.6.4           [31] R6_2.5.1               lifecycle_1.0.3        snakecase_0.11.1       htmlwidgets_1.6.2      insight_0.19.6         pkgconfig_2.0.3       [37] pillar_1.9.0           gtable_0.3.4           data.table_1.14.8      glue_1.6.2             Rcpp_1.0.11            systemfonts_1.0.5     [43] xfun_0.40              tidyselect_1.2.0       rstudioapi_0.15.0      tables_0.9.17          htmltools_0.5.6.1      rmarkdown_2.25        [49] svglite_2.1.2          compiler_4.3.1        
